package com.woniuxy.owner.feign;

import com.woniuxy.common.dto.FaceInfoDto;

import com.woniuxy.common.utils.FaceUploadResult;
import org.springframework.cloud.openfeign.FeignClient;

import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;



@FeignClient(name = "uums-server" )
public interface faceInfoFeign {

    @PostMapping( "/faceInfo/addFaceInfo" )
    @ResponseBody
     void addFaceInfo(@RequestBody FaceInfoDto faceInfo);

     @PostMapping("/faceInfo/upload")
     @ResponseBody
     FaceUploadResult uploadFace(@RequestParam("imageUrl") String imageUrl,
                                       @RequestParam("userId") String userId);


}